#ifndef SEARCHLINEEDIT_H
#define SEARCHLINEEDIT_H
#include <QtWidgets>

class SearchLineEdit : public QLineEdit
{
    Q_OBJECT

public:
    explicit SearchLineEdit(QWidget *parent,QStringList list);
    explicit SearchLineEdit(QWidget *parent = nullptr);
    explicit SearchLineEdit(QWidget *parent,QStringListModel* listmodel);
    ~SearchLineEdit();
    void SetContent(QStringList& list);
signals:
    void Choose(QString s);
private slots:
    void ChooseSlot(QString s);
    void RefreshList(QStringList list);
private:
    QCompleter* completer;
    QStringListModel* listModel;
};

#endif // SEARCHLINEEDIT_H
